import java.util.Scanner;

public class J {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int a []= {19, 28, 37, 46, 50};
		int b = scan.nextInt();
		int i = a[b];
		System.out.println(i);

	}

}
